package com.zx.idc.backend.gui.api.ftp;

import com.jcraft.jsch.Session;
import com.zx.idc.common.pool.ObjectFactory;
import com.zx.idc.common.pool.Pool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author rxliuli
 */
public abstract class FtpChannelFactory<T> implements ObjectFactory<T> {
    protected final Pool<Session> sessionPool;
    protected final FtpClientConfig ftpClientConfig;
    protected final Logger log = LoggerFactory.getLogger(getClass());


    public FtpChannelFactory(Pool<Session> sessionPool, FtpClientConfig ftpClientConfig) {
        this.sessionPool = sessionPool;
        this.ftpClientConfig = ftpClientConfig;
    }
}
